
<script type="text/javascript">
	jQuery(function($) { $("ul.jt-tabs").tabs("div.jt-panes > div"); });
</script>

<form action="" method="post" enctype="multipart/form-data">

	<ul class="jt-tabs"><?
	
		foreach($DATA['langs'] as $lang) {
			?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
		} 
		
	?></ul>
	
	<div class="jt-panes">
	
		<? $t = true; 
			foreach($DATA['langs'] as $lang) { $l = $lang['text'];
	
			?><div class="jt-pane" style="<?=$t ? "display:block" : ""?>">
			
				<h3><?=date2str(dat('date'))?></h3>
			
				<p><label>Daily title<br />
					<input type="text" class="wide" name="title[<?=$l?>]" value="<?=hdat('daily', $l, 'title')?>" /></label></p>
	
				<p><label>Daily image (<?=talkImageSize($s['w'], $s['h'])?>)<br />
					<input type="file" name="image_<?=$l?>" /></label><br />
					<? if ($im = dat('daily', $l, 'image')) {
						?><img src="<?=$im['fn']?>" /><?
					} ?>
				</p>
	
	
			</div><? 
		
		$t = false; } ?>
	
	</div>
		
	<p><input type="submit" name="editor_save" value="Save" /></p>

</form>
